package com._520it._04_many2many.mapper;


import com._520it._04_many2many.domian.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface TeacherMapper {

    void save(Teacher teacher);

    void saveRelation(@Param("teaId") Long teaId, @Param("stuId") Long stuId);

    void deleteRelation(long teaId);

    void delete(long id);

    //额外SQL
    Teacher get(Long id);


    //内连查询
    Teacher get1(Long id);


    List<Teacher> list();


}
